<!--

   通用产品选 择,
   $_GET['type'] == 1   单选
                 == 2   多选

-->
<div class="bjui-pageHeader">
    <div class="pull-right">
        <!-- Think.get.type  == 2  多选 -->
        <eq name="Think.get.type" value="2">
            <input type="checkbox" name="lookupType" value="1" data-toggle="icheck" data-label="追加" checked>
            <button type="button" class="btn-blue" data-toggle="lookupback" data-lookupid="ids" data-warn="请至少选择一项" data-icon="check-square-o">选择勾选</button>
        </eq>
    </div>
    <form id="pagerForm" data-toggle="ajaxsearch" data-loadingmask="true" action="{:U('Index/save')}" method="post">
        <input type="hidden" name="pageSize" value="{:I('param.pageSize')}" />
        <input type="hidden" name="pageCurrent" value="{:I('param.pageCurrent')}" />
        <input type="hidden" name="orderField" value="{:I('param.orderField')}" />
        <input type="hidden" name="orderDirection" value="{:I('param.orderDirection')}" />
        <div class="bjui-searchBar">
            <label>名称:</label>
            <input type="text" name="" />
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询 </a>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
        <tr>
            <eq name="Think.get.type" value="2">
                <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
            </eq>
            <th>规格名称</th>
            <th>规格项</th>
            <th width="100">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <eq name="Think.get.type" value="2">
                <td width="26"><input type="checkbox" value="{id:1, spec_name:'颜色',spec_item:'金色_灰色_原力金_土豪金_玫瑰金'}" class="checkboxCtrl" name="ids" data-toggle="icheck"></td>
            </eq>
            <td>颜色</td>
            <td>金色,灰色,原力金,土豪金,玫瑰金</td>
            <td>
                <button type="button" class="btn-green" data-toggle="lookupback" data-args="{id:1, spec_name:'颜色',spec_item:'金色_灰色_原力金_土豪金_玫瑰金'}">选</button>
            </td>
        </tr>
        <tr>
            <eq name="Think.get.type" value="2">
                <td width="26"><input type="checkbox" value="{id:2, spec_name:'容量',spec_item:'32G_64G_128G'}" class="checkboxCtrl" name="ids" data-toggle="icheck"></td>
            </eq>
            <td>容量</td>
            <td>32G,64G,128G</td>
            <td>
                <button type="button" class="btn-green" data-toggle="lookupback" data-args="{id:2, spec_name:'容量',spec_item:'32G_64G_128G'}">选</button>
            </td>
        </tr>
        <tr>
            <eq name="Think.get.type" value="2">
                <td width="26"><input type="checkbox" value="{id:3, spec_name:'购买方式',spec_item:'官方标配_移动优惠购_电信优惠购'}" class="checkboxCtrl" name="ids" data-toggle="icheck"></td>
            </eq>
            <td>购买方式</td>
            <td>官方标配,移动优惠购,电信优惠购</td>
            <td>
                <button type="button" class="btn-green" data-toggle="lookupback" data-args="{id:3, spec_name:'购买方式',spec_item:'官方标配_移动优惠购_电信优惠购'}">选</button>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<include file="Common/footer" ftype="page" />